Image features extraction and clustering